package com.flying.invest.assets.model;

import java.util.Date;

import com.flying.common.util.Codes;
import com.flying.framework.annotation.Param;
import com.flying.framework.data.Data;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="i_assets_price",title="品种价格", table="i_assets_price", primaryKeys={"price_id"})
public class AssetsPrice extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "i_assets_price";
	
	public final static String PRICE_ID = "price_id";
	public final static String ASSETS_ID = "assets_id";
	public final static String PRICE = "price";
	public final static String MIN_PRICE = "min_price";
	public final static String MAX_PRICE = "max_price";
	public final static String OPEN_PRICE = "open_price";
	public final static String CLOSE_PRICE = "close_price";
	public final static String PRICE_DATE = "price_date";
	public final static String UPDATE_TIME = "update_time";
	
	
	@Param(value=PRICE_ID,   required=true,   maxlength=0,	desc="ID" , generator=Codes.AUTO_INCREMENT)
	private Long priceId;
	
	@Param(value=ASSETS_ID,   required=true,   maxlength=0,	desc="品种ID" )
	private Long assetsId;
	
	@Param(value=PRICE,   required=false,   maxlength=0,	desc="价格" )
	private Double price;
	
	@Param(value=MIN_PRICE,   required=false,   maxlength=0,	desc="最低价格" )
	private Double minPrice;
	
	@Param(value=MAX_PRICE,   required=false,   maxlength=0,	desc="最高价格" )
	private Double maxPrice;
	
	@Param(value=OPEN_PRICE,   required=false,   maxlength=0,	desc="开盘价格" )
	private Double openPrice;
	
	@Param(value=CLOSE_PRICE,   required=false,   maxlength=0,	desc="收盘价格" )
	private Double closePrice;
	
	@Param(value=PRICE_DATE,   required=true,   maxlength=0,	desc="价格日期" )
	private String priceDate;
	
	@Param(value=UPDATE_TIME,   required=false,   maxlength=0,	desc="更新时间" )
	private Date updateTime;
	
	
	public Long getPriceId() {
		return this.priceId;
	}
	
	public void setPriceId(Long priceId) {
		this.priceId = priceId;
	}
	
	public Long getAssetsId() {
		return this.assetsId;
	}
	
	public void setAssetsId(Long assetsId) {
		this.assetsId = assetsId;
	}
	
	public Double getPrice() {
		return this.price;
	}
	
	public void setPrice(Double price) {
		this.price = price;
	}
	
	public Double getMinPrice() {
		return this.minPrice;
	}
	
	public void setMinPrice(Double minPrice) {
		this.minPrice = minPrice;
	}
	
	public Double getMaxPrice() {
		return this.maxPrice;
	}
	
	public void setMaxPrice(Double maxPrice) {
		this.maxPrice = maxPrice;
	}
	
	public Double getOpenPrice() {
		return this.openPrice;
	}
	
	public void setOpenPrice(Double openPrice) {
		this.openPrice = openPrice;
	}
	
	public Double getClosePrice() {
		return this.closePrice;
	}
	
	public void setClosePrice(Double closePrice) {
		this.closePrice = closePrice;
	}
	
	public String getPriceDate() {
		return this.priceDate;
	}
	
	public void setPriceDate(String priceDate) {
		this.priceDate = priceDate;
	}
	
	public Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	

}